package com.hxci.demo;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class twst {

    @Test
    public void mainq(){
        try {
            ApplicationContext context = new ClassPathXmlApplicationContext("applition.xml");
            UserDao userDao = context.getBean ("userDao",UserDao.class);
            userDao.inerst();
            System.out.println();
            System.out.println();

            userDao.select();
            System.out.println();
            System.out.println();

            userDao.update();
            System.out.println ();
            System.out.println();

            userDao.delete();
        } catch (Exception e) {
            System.out.println("异常");
        }

    }
}
